package com.kfm.base.oop2.pm;

// public class Person extends Object
public class Person {

    private String name;

    private Integer age;

    private Character gender;

    final int aaa  = 1;

    public Person(){
        this("佚名", 18, '男');
    }

    public Person(String name, int age, char gender){
        setName(name);
        setAge(age);
        setGender(gender);
    }


    public void setName(String name){
        this.name = name;
    }
    public String getName(){
        return name;
    }

    public void setAge(int age){
        this.age = age;
    }

    public Integer getAge(){
        return age;
    }

    public void setGender(char gender){
        this.gender = gender;
    }

    public Character getGender(){
        return gender;
    }

    void showInfo(){
        System.out.println("姓名：" + name + ", 性别： " + gender + ", 年龄: " + age);
    }

    final void finalMethod(){
        System.out.println("person.finalMethod");
    }
}
